const app = {
  state: {
    test: 1
  },
  mutations: {
    example: (state, outParams) => {
      //第一个参数为当前state，第二个参数可外部传入
    },
  },
  actions: {
    example({ commit, dispatch }, outParams) {
      // commit('example', outParams) 同步发射
      // dispatch('example', outParams) 异步发射
    },
  },
  getters: {
    //过滤器
  }
}

export default app